import {get,post} from './request.js'

const search=searchFilter=>{
    return get('/playlist',{params:searchFilter})
}

const create=playlist=>{
    return post('/playlist',playlist)
}

const update=(id,fields)=>{
    return post(`/playlist/${id}`,fields)
}

export  default {
    search,
    create,
    update
}